package gazzera.node.core.messages;

import java.io.*;

public class Chat extends Message
{
	public String text;

	public Chat()
	{
	}

	public Chat(String text)
	{
		super();
		this.text = text;
	}

	@Override
	protected void recv(DataInputStream s) throws IOException
	{
		text = s.readUTF();
		
	}

	@Override
	protected void send(DataOutputStream s) throws IOException
	{
		s.writeUTF(text);
		
	}
	
	
}
